home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / VBASIC / T2WIN910.ZIP / FORM2.FRM (.txt) next >
Encoding:
Visual Basic Form  |  1997-01-16  |  5.9 KB  |  186 lines

  1. VERSION 2.00
  2. Begin Form frmLng 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Read Control Language"
  5.    ClientHeight    =   3225
  6.    ClientLeft      =   1230
  7.    ClientTop       =   3435
  8.    ClientWidth     =   6240
  9.    Height          =   3855
  10.    Left            =   1200
  11.    LinkTopic       =   "Form2"
  12.    ScaleHeight     =   3225
  13.    ScaleWidth      =   6240
  14.    Top             =   2835
  15.    Width           =   6300
  16.    Begin OptionButton Option1 
  17.       BackColor       =   &H00C0C0C0&
  18.       Caption         =   "&Dutch"
  19.       Height          =   210
  20.       Index           =   2
  21.       Left            =   3960
  22.       TabIndex        =   3
  23.       Top             =   540
  24.       Width           =   1635
  25.    End
  26.    Begin Frame Frame1 
  27.       BackColor       =   &H00C0C0C0&
  28.       Caption         =   "Frame1"
  29.       Height          =   735
  30.       Left            =   180
  31.       TabIndex        =   7
  32.       Top             =   1890
  33.       Width           =   5955
  34.       Begin Label Label2 
  35.          BackColor       =   &H00C0C0C0&
  36.          Caption         =   "Label2"
  37.          Height          =   195
  38.          Left            =   180
  39.          TabIndex        =   8
  40.          Top             =   360
  41.          Width           =   5685
  42.       End
  43.    End
  44.    Begin CheckBox Check1 
  45.       BackColor       =   &H00C0C0C0&
  46.       Caption         =   "Check1"
  47.       Height          =   225
  48.       Left            =   180
  49.       TabIndex        =   6
  50.       Top             =   1530
  51.       Width           =   5955
  52.    End
  53.    Begin TextBox Text1 
  54.       Height          =   285
  55.       Left            =   180
  56.       TabIndex        =   5
  57.       Text            =   "TIME TO WIN"
  58.       Top             =   1170
  59.       Width           =   5955
  60.    End
  61.    Begin OptionButton Option1 
  62.       BackColor       =   &H00C0C0C0&
  63.       Caption         =   "&French"
  64.       Height          =   210
  65.       Index           =   1
  66.       Left            =   2070
  67.       TabIndex        =   2
  68.       Top             =   540
  69.       Width           =   1635
  70.    End
  71.    Begin CommandButton Command2 
  72.       Caption         =   "&Read"
  73.       Height          =   375
  74.       Left            =   180
  75.       TabIndex        =   9
  76.       Top             =   2700
  77.       Width           =   2265
  78.    End
  79.    Begin CommandButton Command1 
  80.       Caption         =   "&Close"
  81.       Height          =   375
  82.       Left            =   5220
  83.       TabIndex        =   10
  84.       Top             =   2700
  85.       Width           =   915
  86.    End
  87.    Begin OptionButton Option1 
  88.       BackColor       =   &H00C0C0C0&
  89.       Caption         =   "&English"
  90.       Height          =   210
  91.       Index           =   0
  92.       Left            =   180
  93.       TabIndex        =   1
  94.       Top             =   540
  95.       Value           =   -1  'True
  96.       Width           =   1635
  97.    End
  98.    Begin Label Label1 
  99.       BackStyle       =   0  'Transparent
  100.       Caption         =   "&The name of this product is :"
  101.       Height          =   225
  102.       Index           =   1
  103.       Left            =   180
  104.       TabIndex        =   4
  105.       Top             =   900
  106.       Width           =   5955
  107.    End
  108.    Begin Label Label1 
  109.       BackStyle       =   0  'Transparent
  110.       Caption         =   "&Select the appropriate language :"
  111.       Height          =   225
  112.       Index           =   0
  113.       Left            =   180
  114.       TabIndex        =   0
  115.       Top             =   180
  116.       Width           =   5955
  117.    End
  118.    Begin Menu mnu_1 
  119.       Caption         =   "Menu &1"
  120.       Begin Menu mnu_11 
  121.          Caption         =   "menu 1.1"
  122.          Begin Menu mnu_111 
  123.             Caption         =   "menu 1.1.1"
  124.          End
  125.          Begin Menu mnu_112 
  126.             Caption         =   "menu 1.1.2"
  127.             Begin Menu mnu_1121 
  128.                Caption         =   "menu 1.1.2.1"
  129.             End
  130.          End
  131.       End
  132.       Begin Menu mnu_12 
  133.          Caption         =   "menu 1.2"
  134.          Begin Menu mnu_121 
  135.             Caption         =   "menu 1.2.1"
  136.          End
  137.          Begin Menu mnu_122 
  138.             Caption         =   "menu 1.2.2"
  139.          End
  140.          Begin Menu mnu_123 
  141.             Caption         =   "-"
  142.          End
  143.          Begin Menu mnu_124 
  144.             Caption         =   "menu 1.2.4"
  145.             Checked         =   -1  'True
  146.          End
  147.       End
  148.    End
  149.    Begin Menu mnu_2 
  150.       Caption         =   "Menu &2"
  151.       Enabled         =   0   'False
  152.    End
  153.    Begin Menu mnu_3 
  154.       Caption         =   "Menu &3"
  155.       Begin Menu mnu_31 
  156.          Caption         =   "menu 3.1"
  157.          Enabled         =   0   'False
  158.       End
  159.       Begin Menu mnu_32 
  160.          Caption         =   "menu 3.2"
  161.       End
  162.    End
  163. Option Explicit
  164. Dim status        As Integer
  165. Sub Command1_Click ()
  166.    Unload frmLng
  167. End Sub
  168. Sub Command2_Click ()
  169.    If (Option1(0).Value = True) Then
  170.       status = cReadCtlLanguage(mnu_1, 255, frmT2W.Tag + ".TUK")
  171.       Label2.Caption = cGetLongDay(LNG_ENGLISH, Weekday(Int(Now))) & " " & Day(Int(Now)) & " " & cGetLongMonth(LNG_ENGLISH, Month(Int(Now))) & " " & Year(Int(Now))
  172.    End If
  173.    If (Option1(1).Value = True) Then
  174.       status = cReadCtlLanguage(mnu_1, 255, frmT2W.Tag + ".TFR")
  175.       Label2.Caption = cGetLongDay(LNG_FRENCH, Weekday(Int(Now))) & " " & Day(Int(Now)) & " " & cGetLongMonth(LNG_FRENCH, Month(Int(Now))) & " " & Year(Int(Now))
  176.    End If
  177.    If (Option1(2).Value = True) Then
  178.       status = cReadCtlLanguage(mnu_1, 255, frmT2W.Tag + ".TNL")
  179.       Label2.Caption = cGetLongDay(LNG_DUTCH, Weekday(Int(Now))) & " " & Day(Int(Now)) & " " & cGetLongMonth(LNG_FRENCH, Month(Int(Now))) & " " & Year(Int(Now))
  180.    End If
  181. End Sub
  182. Sub Form_Load ()
  183.    status = cReadCtlLanguage(mnu_1, 255, frmT2W.Tag + ".TUK")
  184.    Label2.Caption = cGetLongDay(LNG_ENGLISH, Weekday(Int(Now))) & " " & Day(Int(Now)) & " " & cGetLongMonth(LNG_ENGLISH, Month(Int(Now))) & " " & Year(Int(Now))
  185. End Sub
  186.